//
//  ShengJingSelectTableViewCell.m
//  JiuKuGospel
//
//  Created by jiukuyinyue on 15-8-21.
//  Copyright (c) 2015年 JiuKuForApp. All rights reserved.
//

#import "ShengJingSelectTableViewCell.h"

@implementation ShengJingSelectTableViewCell

- (void)setNumStr:(NSString *)numStr
{
    [self setupUI:numStr];
}

- (void)setupUI:(NSString *)numStr
{
    [self.allView removeFromSuperview];
    self.allView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.width, self.height)];
    [self addSubview:_allView];
    
    self.numLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, _allView.height, _allView.width/3*2)];
    _numLabel.text = numStr;
    _numLabel.textAlignment = NSTextAlignmentCenter;
    _numLabel.textColor = [UIColor lightGrayColor];
    _numLabel.font = FONT_30;
    [_allView addSubview:_numLabel];
    
    self.tempLabel = [[UILabel alloc] initWithFrame:CGRectMake(_numLabel.left, _numLabel.bottom, _numLabel.width, _allView.width/3)];
    _tempLabel.text = @"章";
    _tempLabel.textAlignment = NSTextAlignmentCenter;
    _tempLabel.textColor = [UIColor grayColor];
    _tempLabel.font = FONT_14;
    [_allView addSubview:_tempLabel];
    
    [_allView setTransform:CGAffineTransformMakeRotation(M_PI_2)];
    if (self.width != self.height) {
        _allView.frame = CGRectMake(0, 0, 85, ScreenWidth/5);
    }

    
}

@end
